/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.acmwustl.bubble.controllers;

import org.acmwustl.bubble.gui.AdminAccessFrame;
import org.acmwustl.bubble.gui.BalanceRequestFrame;
import org.acmwustl.bubble.gui.MainWindow;
import org.acmwustl.bubble.gui.PaymentFrame;
import org.acmwustl.bubble.gui.PurchaseDialog;
import org.acmwustl.bubble.gui.RegisterFrame;

/**
 *
 * @author officer
 */
public class MainPanelController {
    
    MainWindow myParent;
    
    public MainPanelController(MainWindow mp) {
        myParent = mp;
    }

    public void purchaseButton() {
        new PurchaseDialog(myParent).setVisible(true);
    }

    public void registerButton() {
        new RegisterFrame().setVisible(true);
    }

    public void paymentButton() {
        new PaymentFrame().setVisible(true);
    }

    public void viewBalanceButton() {
        new BalanceRequestFrame().setVisible(true);
    }

    public void adminButton() {
        new AdminAccessFrame(myParent).setVisible(true);
    }
}
